<%@page import="entities.User"%>
<%@page import="entities.SiteConfig"%>
<%
 	SiteConfig siteConfig = (SiteConfig) request.getAttribute("config");
	User user = (User) request.getAttribute("user_logged_in");
%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<%=siteConfig.getHttpCharacterSet().toUpperCase()%>">
<meta name="http://localhost:8888/validation" content="0a137b375cc3881a70e186ce2172c8d1" />
<meta name="description" content="<%=request.getParameter("description").replaceAll("[\"\']+", "")%>" >
<meta name="Keywords" content="<%=request.getParameter("keywords").replaceAll("[\"\']+", "")%>" >
<link href="/demo/css/style.css" type="text/css" rel="stylesheet">
<meta property="og:site_name" content="<%=request.getParameter("ogsite_name") %>" >
<meta property="og:title" content="<%=request.getParameter("ogtitle").replaceAll("[\"\']+", "")%>" >
<meta property="og:url" content="<%=request.getParameter("ogurl")%>" >
<meta property="og:image" content="<%=request.getParameter("ogimage")%>" >
<meta property="og:description" content="<%=request.getParameter("ogdescription") %>" >
<script type="text/javascript" src="/demo/js/jquery-1.7.1.min.js"></script>
<title><%=request.getParameter("title")%></title>
</head>
<body>
<div id="container">
	<div id="header">
		<div class="logo">
			<h1><a href="/home">GEA Website</a></h1> 
		</div>
		<div class="top-panel">
			<% if (user != null) { %>
			<a href="/profile"><%=user.getUsername() %></a> - <a href="/logout">Logout</a>
			<% } else { %>
			<a href="/login">Login</a> - <a href="/register">Register</a>
			<% } %>
		</div>
		<div class="clear"></div>
	</div>
	
	<jsp:include page="/demo/elements/menu.jsp">
    	<jsp:param name="language" value="1" />
	</jsp:include>
	
	<div id="main">